/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.googlecode.jsimplemarket.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author Alexandru.Codescu
 */
@Entity
@Table(name = "n_tipuri_taxa")
public class NTipTaxa extends AbstractNomenclator {
    private String unitateMasura;
    private NTipRecurenta tipRecurenta;
    private Boolean incasareRapida;

    @Column(name = "UNITATE_MASURA")
    public String getUnitateMasura() {
        return unitateMasura;
    }

    public void setUnitateMasura(String unitateMasura) {
        this.unitateMasura = unitateMasura;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ID_TIP_RECURENTA")
    public NTipRecurenta getTipRecurenta() {
        return tipRecurenta;
    }

    public void setTipRecurenta(NTipRecurenta tipRecurenta) {
        this.tipRecurenta = tipRecurenta;
    }

    @Column(name = "INCASARE_RAPIDA")
    public Boolean isIncasareRapida() {
        return incasareRapida;
    }

    public void setIncasareRapida(Boolean incasareRapida) {
        this.incasareRapida = incasareRapida;
    }   
}
